package com.wsl.springbootsecurity.repository;

import com.wsl.springbootsecurity.user.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 14:37 2017/12/1
 * @Modified by:
 */
public interface SysUserRepository extends JpaRepository<SysUser,Long> {
    /**
     * 根据用户名查出用户的方法
     * @param userName
     * @return
     */
    SysUser findByUsername(String userName);
}
